package org.extframework.ld.http.global;

import org.extframework.ld.bean.model.IUser;

/**
 * @author : Dong.Li
 * @created : 2013-1-22
 * @version : 1.0
 * @description :
 */
public class ExtSystemGlobal {
	
	private static ThreadLocal<IUser> local = new ThreadLocal<IUser>();
	
	public static void removeUserSession() {
		local.set(null);
	}

	public static void setUserSession(IUser user) {
		local.set(user);
	}

	public static IUser getUserSession() {
		return local.get();
	}
	
	

}
